import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'

import user from './views/nav1/user.vue'
import bill from './views/nav1/bill.vue'
import userComment from './views/nav1/userComment.vue'
import userCoupon from './views/nav1/userCoupon.vue'
import useryongjin from './views/nav1/useryongjin.vue'
import userjifen from './views/nav1/userjifen.vue'
import usertuandui from './views/nav1/usertuandui.vue'

import leimu from './views/nav2/leimu.vue'
import goodsCategory from './views/nav2/goodsCategory.vue'
import goods from './views/nav2/goods.vue'

import groupList from './views/nav2/group.vue'

import pendingPayment from './views/nav2/pendingPayment.vue'
import toBeShipped from './views/nav2/toBeShipped.vue'
import waitGroup from './views/nav2/waitGroup.vue'
import goodsToBeReceived from './views/nav2/goodsToBeReceived.vue'
import completed from './views/nav2/completed.vue'
import cancel from './views/nav2/cancel.vue'
import refundInProgress from './views/nav2/refundInProgress.vue'
import refuseRefund from './views/nav2/refuseRefund.vue'
import refunded from './views/nav2/refunded.vue'
import refundAfter from './views/nav2/refundAfter.vue'
import toBeRefunded from './views/nav2/toBeRefunded.vue'
import toBeEvaluated from './views/nav2/toBeEvaluated.vue'
import goodsComment from './views/nav2/goodsComment.vue'
import goodsbaozhang from './views/nav2/goodsbaozhang.vue'
import wuliu from './views/nav2/wuliu.vue'
import shouhou from './views/nav2/shouhou.vue'

import coupon from './views/nav3/coupon.vue'
import Agreement from './views/nav3/Agreement.vue'
import feedback from './views/nav3/feedback.vue'
import banner from './views/nav3/banner.vue'
import yunfeipeizhi from './views/nav3/yunfeipeizhi.vue'
import index from './views/nav3/index.vue'
import indexChild from './views/nav3/indexChild.vue'
import video from './views/nav3/video.vue'
import wuliushuoming from './views/nav3/wuliushuoming.vue'
import xinleimu from './views/nav3/xinleimu.vue'
import xinleimuChild from './views/nav3/xinleimuChild.vue'
import tuihuodizhi from './views/nav3/tuihuodizhi.vue'
import zitidian from './views/nav3/zitidian.vue'
import fenxiaotixi from './views/nav3/fenxiaotixi.vue'
import Withdrawal from './views/nav3/Withdrawal.vue'
import huiyuan from './views/nav3/huiyuan.vue'
import huiyuanjilu from './views/nav3/huiyuanjilu.vue'
import tongzhi from './views/nav3/tongzhi.vue'

import RightsManagement from './views/nav4/RightsManagement.vue'
import xiaoxituisong from './views/nav4/xiaoxituisong.vue'




let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        id:'1',
        component: Home,
        name: '用户管理',
//      leaf: true,//只有一个节点
        iconCls: 'fa fa-user',//图标样式class
        children: [
            { path: '/user',id:'6', component: user, name: '用户列表' },
            
        ]
    },
    {
        path: '/',
        component: Home,
        name: '商品管理',
        leaf: false,//只有一个节点
        iconCls: 'fa fa-shopping-bag',//图标样式class
        children: [
            //{ path: '/leimu', component: leimu, name: '分类管理',},
            { path: '/xinleimu', component: xinleimu, name: '商品分类' },
//          { path: '/goodsCategory', component: goodsCategory, name: '分类管理',},
            { path: '/goods', component: goods, name: '商品管理'},
            { path: '/group', component: groupList, name: '拼团管理',},
            
        ]
    },
    {
        path: '/',
        component: Home,
        name: '订单管理',
        leaf: false,//只有一个节点
        iconCls: 'fa fa-cart-plus',//图标样式class
        children: [
            { path: '/pendingPayment', component: pendingPayment, name: '待付款'},
            { path: '/toBeShipped', component: toBeShipped, name: '待发货'},
            { path: '/waitGroup', component: waitGroup, name: '等待成团'},            
            { path: '/goodsToBeReceived', component: goodsToBeReceived, name: '待收货'},
            { path: '/toBeEvaluated', component: toBeEvaluated, name: '待评价'},
            { path: '/completed', component: completed, name: '已完成'},
            { path: '/cancel', component: cancel, name: '已取消'},
            { path: '/shouhou', component: shouhou, name: '售后'},
        ]
    },
//  {
//      path: '/',
//      component: Home,
//      name: '视频管理',
//      leaf: true,//只有一个节点
//      iconCls: 'fa fa-play-circle-o',//图标样式class
//      children: [
//          { path: '/video', component: video, name: '视频管理'},
//      ]
//  },
//  {
//      path: '/',
//      component: Home,
//      name: '售后管理',
//      leaf: false,//只有一个节点
//      iconCls: 'fa fa-cart-arrow-down',//图标样式class
//      children: [
//          { path: '/refundInProgress', component: refundInProgress, name: '退款中'},
//          { path: '/toBeRefunded', component: toBeRefunded, name: '待退款'},
//          { path: '/refunded', component: refunded, name: '已退款'},
//          { path: '/refuseRefund', component: refuseRefund, name: '拒绝退款'},
//      ]
//  },
    
    {
        path: '/',
        component: Home,
        name: '会员管理',
        iconCls: 'fa fa-rmb',//图标样式class
        children: [
            { path: '/huiyuan', component: huiyuan, name: '会员配置'},
            { path: '/huiyuanjilu', component: huiyuanjilu, name: '开通会员记录' },
        ]
    },
//  {
//      path: '/',
//      component: Home,
//      name: '提现管理',
//      iconCls: 'fa fa-rmb',//图标样式class
//      children: [
//          { path: '/Withdrawal', component: Withdrawal, name: '提现管理' },
//          //{ path: '/promotionList', component: promotionList, name: '推广列表' },
//      ]
//  },
    {
        path: '/',
        component: Home,
        id:'4',
        name: '平台管理',
        iconCls: 'fa fa-sitemap',//图标样式class
        children: [
            //{ path: '/index', component: index, name: '首页分类' },
//          { path: '/xinleimu', component: xinleimu, name: '商品分类' },
            
            { path: '/goodsbaozhang', component: goodsbaozhang, name: '商品保障'},
            { path: '/wuliu', component: wuliu, name: '物流'},
            { path: '/wuliushuoming', component: wuliushuoming, name: '物流说明'},
            { path: '/tuihuodizhi', component: tuihuodizhi, name: '退货地址'},
            { path: '/coupon', component: coupon, name: '优惠券' },
            { path: '/yunfeipeizhi', component: yunfeipeizhi, name: '运费配置' },
            { path: '/banner', component: banner, name: 'banner管理' },
            { path: '/zitidian', component: zitidian, name: '自提点' },
            { path: '/Agreement', component: Agreement, name: '协议管理' },
            { path: '/feedback', component: feedback, name: '意见反馈' },
            { path: '/tongzhi', component: tongzhi, name: '通知' },
        ]
    },
    {
        path: '/',
        component: Home,
        id:'4',
        name: '账号管理',
        iconCls: 'fa fa-cog',
        hidden: false,
        leaf: false,
        children: [
            { path: '/RightsManagement', component: RightsManagement, name: '账号管理' },
//          { path: '/xiaoxituisong', component: xiaoxituisong, name: '消息推送' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '',
        hidden: true,
        children: [
            { path: '/bill', component: bill, name: '账单明细' },
            { path: '/goodsComment', component: goodsComment, name: '商品评论' },
            { path: '/userComment', component: userComment, name: '用户评论' },
            { path: '/userCoupon', component: userCoupon, name: '用户优惠券' },
            { path: '/indexChild', component: indexChild, name: '首页二级分类' },
            { path: '/xinleimuChild', component: xinleimuChild, name: '二级分类' },
            { path: '/useryongjin', component: useryongjin, name: '我的佣金' },
            { path: '/userjifen', component: userjifen, name: '我的积分' },
            { path: '/usertuandui', component: usertuandui, name: '我的团队' },
        ]
    },

    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;